﻿using MediatR;
using MySqlX.XDevAPI.Common;

namespace RBAC_Set.API.Application.Commands
{
    /// <summary>
    /// 添加用户信息  及其  用户角色关联信息
    /// </summary>1
    public class AddUsersCommand : IRequest<THE_WIND_RISES.Common.Dtos.Result>
    {
        /// <summary>
        /// 用户主键
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string UserPwd { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool UserState { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete { get; set; }


        /// <summary>
        /// 用户角色关联主键
        /// </summary>
        public int UserRoleId { get; set; }
        /// <summary>
        /// 角色
        /// </summary>
        public int RoleId { get; set; }

        /// <summary>
        /// 操作人
        /// </summary>
        public string Handle { get; set; }
        /// <summary>
        /// 操作内容
        /// </summary>
        public string HandleContext { get; set; }
        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime HandleTime { get; set; }
        /// <summary>
        /// pid=1:创建   pid=2:审批   pid=3:删除   pid=4:修改  
        /// </summary>
        public int Pid { get; set; }
    }
}
